
import 'package:json_annotation/json_annotation.dart';
import 'package:reabammendian/src/reabam/operation/bean/base/rb_request.dart';
import 'package:reabammendian/src/reabam/operation/bean/base/rb_response.dart';

//定义生成的文件 flutter pub run build_runner build --delete-conflicting-outputs
part 'Request_update_serversocket.g.dart';

@JsonSerializable(explicitToJson: true)
class RequestUpdateServerSocket extends RBBaseRequest{

  List<BeanSocketPrintSetDTOS>? printSetDTOS;

  RequestUpdateServerSocket(this.printSetDTOS):super();

  factory RequestUpdateServerSocket.fromJson(Map<String, dynamic> json) => _$RequestUpdateServerSocketFromJson(json);
  Map<String, dynamic> toJson() => _$RequestUpdateServerSocketToJson(this);

}



@JsonSerializable(explicitToJson: true)
class BeanSocketPrintSetDTOS {

  String? id;
  String? companyId;
  String? ip;
  String? mac;
  int isMain=0;

  bool isUserSelect=false;


  BeanSocketPrintSetDTOS({this.id, this.companyId, this.ip, this.mac,
    this.isMain=0, this.isUserSelect=false});

  factory BeanSocketPrintSetDTOS.fromJson(Map<String, dynamic> json) => _$BeanSocketPrintSetDTOSFromJson(json);
  Map<String, dynamic> toJson() => _$BeanSocketPrintSetDTOSToJson(this);

}

